// 判断是不是最新生成的时间 , <=1分钟
export const isNewDataByTime = (updateTime) => {
    if (!updateTime) return false;

    //替换“-”为“/”
    let date = updateTime
      .replace(/年/g, "/")
      .replace(/月/g, "/")
      .replace(/日/g, "/");
    //使用时间对象转换
    let timestamp = new Date(date).getTime();
    // 当前时间
    let nowTimestamp = new Date().getTime();
      
    let subTime = (nowTimestamp - timestamp ) / 60000
    if (subTime > 1)
      return false
    return true   
  };

export default { isNewDataByTime }